package com.user.gamecenter.network.help;

import okhttp3.HttpUrl;

/**
 * Created by Administrator on 2017/3/28.
 */

public class BaseUrl {

    private String baseUrlString = null;
    private HttpUrl baseUrlHttpUrl = null;

    public BaseUrl(String baseUrlString, HttpUrl baseUrlHttpUrl) {
        this.baseUrlString = baseUrlString;
        this.baseUrlHttpUrl = baseUrlHttpUrl;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        BaseUrl baseUrl = (BaseUrl) o;

        if (baseUrlString != null ? !baseUrlString.equals(baseUrl.baseUrlString) : baseUrl.baseUrlString != null)
            return false;
        return baseUrlHttpUrl != null ? baseUrlHttpUrl.equals(baseUrl.baseUrlHttpUrl) : baseUrl.baseUrlHttpUrl == null;

    }

    @Override
    public int hashCode() {
        int result = baseUrlString != null ? baseUrlString.hashCode() : 0;
        result = 31 * result + (baseUrlHttpUrl != null ? baseUrlHttpUrl.hashCode() : 0);
        return result;
    }

    public String getBaseUrlString() {
        return baseUrlString;
    }

    public void setBaseUrlString(String baseUrlString) {
        this.baseUrlString = baseUrlString;
    }

    public HttpUrl getBaseUrlHttpUrl() {
        return baseUrlHttpUrl;
    }

    public void setBaseUrlHttpUrl(HttpUrl baseUrlHttpUrl) {
        this.baseUrlHttpUrl = baseUrlHttpUrl;
    }
}
